import java.util.Scanner;

public class Practice02 {
    public static void main(String[] args) {
        Sum sum = new Sum();
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数字：");
        int number01 = scanner.nextInt();
        System.out.println("请输入第二个数字：");
        int number02 = scanner.nextInt();
        System.out.println("两个数字之和为：");
        sum.plusInt(number01,number02);

        long number03 = scanner.nextLong();
        long number04 = scanner.nextLong();
        sum.plusLong(number03,number04);

        float number05 = scanner.nextFloat();
        float number06 = scanner.nextFloat();
        sum.plusFloat(number05,number06);

        double number07 = scanner.nextDouble();
        double number08 = scanner.nextDouble();
        sum.plusDouble(number07,number08);

        /*
        long result = sum.plus(l1L, l2L)
        或直接
        System.out.println(sum.plus(l1L, l2L));
        */
    }
}
